//
//  HomeSecondView.swift
//  VastSwift
//
//  Created by BestVast on 2021/5/28.
//

import UIKit

/// 第二行view，包括 自选商品、询价列表、二手件/车
class HomeSecondView: UIView {

    func uiConfig() -> Void {
        self.backgroundColor = .white
        self.layer.cornerRadius = 10
        self.layer.masksToBounds = true
        let width = (screenWidth - 20) / 3
        let texts = ["自选商品", "询价列表", "二手件/车"]
        for index in 0..<texts.count {
            let view = HomeSmallView.init(frame: CGRect.init(x: Int(width) * index, y: 20, width: Int(width), height: 90))
            view.showViewInfo(text: texts[index], textColor: .gray, numHide: true, num: 0) {
                
            }
            self.addSubview(view)
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.uiConfig()
    }
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }

}
